libtest: show files' contents when assertions about them fail
authorSimon McVittie <smcv@debian.org>
Sun, 17 Apr 2016 08:57:06 +0000 (09:57 +0100)
committerColin Walters (automation) <walters+githubbot@verbum.org>
Sun, 17 Apr 2016 14:16:34 +0000 (14:16 +0000)
commit24cab773a2c849a8153529e3eb5f967302339f68
treeae641c3571f3f84a4631ebba1df4ca143923ee49
parente9a1809c4d9682efdcb1bb50f62658cbf215bbf0
libtest: show files' contents when assertions about them fail

I've seen an intermittent test failure in an autobuilder (sbuild)
environment where logs from failed builds cannot be retrieved,
but I can no longer reproduce it. Put the contents of the offending
file in the test's failing output so that if the failure comes back,
it can be debugged.

Signed-off-by: Simon McVittie <smcv@debian.org>
Closes: #264
Approved by: cgwalters
tests/libtest.sh